import request from "@/utils/request";

// 创建电梯api
export function createItlcloud(data) {
  return request({
    url: "/itlcloud-api/v1/create",
    method: "post",
    data: data,
  });
}

// 获取电梯api
export function getItlcloud(params) {
  return request({
    url: "/itlcloud-api/v1/list",
    method: "get",
    params: params,
  });
}

// 更新电梯api
export function updateItlcloud(id, data) {
  return request({
    url: "/itlcloud-api/v1/update",
    method: "put",
    data: data,
  });
}

// 删除电梯api
export function deleteItlcloud(id) {
  return request({
    url: "/itlcloud-api/v1/delete/" + id,
    method: "delete",
  });
}
